package 运算符;

import javax.sound.midi.Soundbank;
import java.util.Scanner;

public class 运算符_三目 {
    //A?B:C：如果A=true==>B     如果A=false==>C
    public static void main(String[] args) {
        System.out.println(true?"你":"我");//你
        System.out.println(false?"你":"我");//我
        System.out.println("**********************");
        Scanner scanner=new Scanner(System.in);
        System.out.println("有车有房？");
        boolean flag= scanner.nextBoolean();
        System.out.println("存款多少?");
        int money =scanner.nextInt();
        System.out.println(flag&&money>1000000?"好爱你":"你是个好人");
    }
}
